# -*- coding:utf-8 -*-
"""
Author：Administrator
Date:2023年02月23日
"""

import docx
from docx.shared import Cm,Pt
from docx.enum.text import WD_PARAGRAPH_ALIGNMENT


myDocument=docx.Document('新学员.docx')
myTable=myDocument.tables[0]
i =len(myTable.rows)-1
while i>0:
	if '渝北区' not in myTable.cell(i,2).text:
		myRow=myTable.rows[i]
		myRow._element.getparent().remove(myRow._element)

	i-=1

myDocument.save('02散文名篇.docx')


